/**
 * 
 */
package com.xb.demo6.prototype;

import java.util.HashMap;
import java.util.Map;

/**
 * @author kexue
 *
 */
public class ProductManager {

	private  Map<String,Product> map= new HashMap<String,Product> ();
	
	public void register(String name ,Product product){
		map.put(name, product);
	}
	
	public Product create(String name ){
		return map.get(name).createClone();
	}
}
